package cn.stylefeng.guns.modular.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 值班安排
 * </p>
 *
 * @author wusonghe
 * @since 2019-08-31
 */
@TableName("info_duty")
public class Duty implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 值班ID
     */
    @TableId(value = "duty_id", type = IdType.AUTO)
    private Integer dutyId;

    /**
     * 任务ID
     */
    @TableField("task_id")
    private Integer taskId;

    /**
     * 值班组长
     */
    @TableField("worker_leader")
    private String workerLeader;

    /**
     * 值班人员
     */
    @TableField("workers")
    private String workers;

    /**
     * 养殖场ID
     */
    @TableField("farm_id")
    private Integer farmId;

    /**
     * 养殖场
     */
    @TableField("farm")
    private String farm;

    /**
     * 值班开始时间
     */
    @TableField("start_time")
    private Date startTime;

    /**
     * 值班结束时间
     */
    @TableField("end_time")
    private Date endTime;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    public Integer getDutyId() {
        return dutyId;
    }

    public void setDutyId(Integer dutyId) {
        this.dutyId = dutyId;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public String getWorkerLeader() {
        return workerLeader;
    }

    public void setWorkerLeader(String workerLeader) {
        this.workerLeader = workerLeader;
    }

    public String getWorkers() {
        return workers;
    }

    public void setWorkers(String workers) {
        this.workers = workers;
    }

    public Integer getFarmId() {
        return farmId;
    }

    public void setFarmId(Integer farmId) {
        this.farmId = farmId;
    }

    public String getFarm() {
        return farm;
    }

    public void setFarm(String farm) {
        this.farm = farm;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Duty{" +
        "dutyId=" + dutyId +
        ", taskId=" + taskId +
        ", workerLeader=" + workerLeader +
        ", workers=" + workers +
        ", farmId=" + farmId +
        ", farm=" + farm +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
